using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class SceneManger : MonoBehaviour
{
    bool isk = false;
    void Start()
    {
        SceneManager.sceneLoaded += SceneManager_sceneLoaded;
    }

    private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1)
    {
        if (arg0.name== "ZanDouScene")
        {
            ZhanDouController.Instance.InitRoot();
            isk = true;
        }
    }

    // Update is called once per frame
    void Update()
    {
        if (isk)
        {

        ZhanDouController.Instance.OnUpDate();
        }
    }
}
